package com.jk.bgmainprovider.controller;

import com.jk.bgmainprovider.entity.TreeEntity;
import com.jk.bgmainprovider.service.TreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 文件名称:TreeController
 *
 * @Description //TODO
 * @Date 2021/8/31 20:43
 * 作者 王乐
 * Copyright (c) 2021,  All Rights Reserved.</pre>
 */
@RestController
@RequestMapping("bgTree")
public class TreeController {
    @Autowired
    private TreeService treeService;

    @RequestMapping("getTree")
    public List<TreeEntity> getTree(Integer pid){
        return treeService.getTree(pid);
    }
}
